package com.shopping.huaju.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shopping.huaju.commodity.entity.vo.SpuSaveVO;
import com.shopping.huaju.common.utils.PageUtils;
import com.shopping.huaju.commodity.entity.SpuInfoEntity;

import java.util.Map;

/**
 * 商品 spu 信息
 *
 * @author tofu
 * @email tofu@qq.com
 * @date 2023-11-09 13:21:12
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //自定义接口，根据传入的SPU完整信息 保存入库SPU的基本信息
    boolean saveSpuInfo(SpuSaveVO saveVO);

    PageUtils queryPageByConditions(Map<String, Object> params);
    //修改商品发布状态为 上架状态
    void updatePublishStatusUp(Long spuId);
    //修改商品发布状态为 下架状态
    void updatePublishStatusDown(Long spuId);

    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

